const express = require('express')
const bodyParser = require('body-parser')
const router = require('./router')
const cors = require('cors')


const app = express()

app.use(bodyParser.urlencoded({ extended: true }))
app.use(bodyParser.json())
app.use(cors())


app.use('/', router)


const server = app.listen(9000, function () {
    const {address, port} =server.address()
    console.log('http://localhost:9000');
})